public class ScoreStat {
	int java, c, db;
	String name;

	public int getTotal() {
		// int total=java+c+db;
		// return total;
		return java + c + db;
	}

	public void showTotal() {
		double t = getTotal();
		System.out.println("总成绩是：" + t);
		// System.out.println("总成绩是："+getTotal());

	}
}
